//
//  WXSRecorderManger.h
//  SmartRecorderTest
//
//  Created by 王勇 on 2016/9/21.
//  Copyright © 2016年 王勇. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^ManagerCompletionHandler)(BOOL success) ;

@interface WXSRecorderManger : NSObject

@property (nonatomic,assign)BOOL isStoppedManually;//录音被手动终止

@property (nonatomic,assign)BOOL allowedToRecord;

+(instancetype)defaultManager;

-(void)startRecordingWithFilePath:(NSString*)filePath completionHandler:(ManagerCompletionHandler)handler;
-(void)stopRecording:(ManagerCompletionHandler)handler;

#warning not implemented!!!
//-(void)browseRecordFileWithPath:(NSString*)filePath;
//-(void)removeFileAtPath:(NSString *)filePath;
//-(void)removeFilesAtDirectory:(NSString*)directory;
//-(void)removeAllAudioFiles;
@end
